package vn.edu.ute.dao;

import org.hibernate.Session;

import courses.hibernate.util.HibernateUtil;
import vn.edu.ute.pojo.DoanVien;

public class testAutoCreateDatabase{

	public boolean createDatabase(DoanVien dv) {
		Session session =HibernateUtil.getSessionFactory().getCurrentSession();
		session.beginTransaction();
		session.saveOrUpdate(dv);
		session.getTransaction().commit();
		return false;
	}

}
